<.form let={f} for={@changeset} action={@action}>
  <%= if @changeset.action do %>
    <div class="alert alert-danger">
      <p>Oops, something went wrong! Please check the errors below.</p>
    </div>
  <% end %>

  <%= label f, :sent_to %>
  <%= email_input f, :sent_to, required: "required" %>
  <%= error_tag f, :sent_to %>

  <div>
    <%= submit "Save" %>
  </div>
</.form>
